package com.yunxi.sto.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.sto.pojo.StoCarrierVO;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

public class StoCarrierDubboServiceMock implements StoCarrierDubboService {
    @Override
    public StoCarrierVO getById(String id) throws InvocationTargetException, IllegalAccessException {
        StoCarrierVO vo  =  new StoCarrierVO();
        vo.setCarrierName("暂无数据");
        return vo;
    }

    @Override
    public void saveOrUpdate(StoCarrierVO stoCarrierVO) throws Exception, InvocationTargetException, IllegalAccessException {

    }

    @Override
    public void removeById(String id) {

    }

    @Override
    public void del(List<String> list, Integer isDel, String userId) {

    }

    @Override
    public void reset(List<String> list, Integer isDel, String userId) {

    }

    @Override
    public void frozen(List<String> list, Integer isFrozen, String userId) {

    }

    @Override
    public void frozenReset(List<String> list, Integer isFrozen, String userId) {

    }

    @Override
    public PageInfo<StoCarrierVO> findPageByVO(StoCarrierVO stoCarrierVO, Integer pageNum, Integer pageSize) throws InvocationTargetException, IllegalAccessException {
        PageInfo<StoCarrierVO> page =  new   PageInfo<StoCarrierVO>();
        List  list  =  new ArrayList();
        StoCarrierVO vo =  new StoCarrierVO();
        vo.setCarrierName("暂无数据");
        list.add(vo);
        page.setList(list);
        return page;
    }
}
